package exam.rao;

import com.rao.RaoStudentMangerApp;
import com.rao.entity.Clazz;
import com.rao.entity.Student;
import com.rao.entity.Teacher;
import com.rao.mapper.ClazzMapper;
import com.rao.mapper.StudentMapper;
import com.rao.mapper.TeacherMapper;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;
import java.util.Random;

@SpringBootTest(classes = RaoStudentMangerApp.class)
@RunWith(SpringRunner.class)
public class Query {

    @Resource
    ClazzMapper clazzMapper;

    @Test
    public void clazzQuery(){
        System.out.println(clazzMapper.oneByIdDetail(1));
    }
}
